package com.anb.net;

import com.google.protobuf.Parser;

public abstract class CmdHandler {
    public short cmd;
    public String name;
    public Class<?> in;
    public Class<?> out;
    public int sizeLimit;

    public Packet.BodyType inBody;
    public Packet.BodyType outBody;
    public String description;
    public Parser<?> inParser;

    public abstract Object handle(Connection connection, Object _in) throws Exception;
    public abstract void prepare() throws Exception;
}
